package com.zx.test23SDK;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.zx.test23SDK.MyView.TestView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


    }

    @Override
    protected void onResume() {
        super.onResume();


    }

    public void test(View view) {
        TestView TestView = (com.zx.test23SDK.MyView.TestView) findViewById(R.id.TestView);
        TextView testView = new TextView(this);
        testView.setText("213");
        testView.setTextSize(32);
        testView.setGravity(Gravity.CENTER);
        testView.setBackgroundColor(0x33ffff00);
        TestView.addView(testView, 300, 300);
    }
}
